<template>
  <div>

<el-table
    :data="$store.getters['seckill/getSeckData']"
    border
    style="width: 100%">
    <el-table-column
      prop="title"
      label="活动名称"
      width="180">
    </el-table-column>

   <el-table-column
        width="65"
      label="状态">
 <el-button plain size="mini" type="danger"  class="qiyong">启用</el-button>

    </el-table-column>
        <el-table-column
      label="操作"

      >
   <template slot-scope="item">
        <div>
  <el-button plain  size="mini" @click='edit(item.row.id)'>编辑</el-button>
 <el-button plain  size="mini" @click="remove(item.row.id)">删除</el-button>

        </div>
      </template>
    </el-table-column>

  </el-table>

  </div>
</template>

<script>
export default {
  mounted () {
    this.$store.dispatch('seckill/getSecklist')
  },
  methods: {
    edit (id) {
      this.$emit('edit', id)
    }
  }
}
</script>

<style>

</style>
